package com.zbkj.crmeb.store.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.common.PageParamRequest;
import com.zbkj.crmeb.store.model.SupplierDiscount;
import com.zbkj.crmeb.store.request.AddDiscountRequest;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author wuzp
 * @since 2021-09-25
 */
public interface SupplierDiscountService extends IService<SupplierDiscount> {

    /**
     * 创建折扣
     * @param request
     * @return
     */
    boolean addDiscount(AddDiscountRequest request);

    boolean updateDiscount(AddDiscountRequest request);

    boolean stopDiscount(Integer id);

    boolean deleteDiscount(Integer id);

    List<SupplierDiscount> getDiscountList(PageParamRequest pageParamRequest);
}
